<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./js/jquery.min.js"></script>
    <script src="./js/jquery.form.js"></script>
</head>
<body>
<form id="mainForm" method="post" action="/dhxy/rest/basearchives?type=archives&code=bwc">
    classifyId:<input type="text" id="classifyId" name="classifyId" value="4">
    year：<input type="text" id="year" name="year" value="2015">
    departmentName：<input type="text" id="departmentName" name="departmentName" value="保安处">
    volumeNo：<input type="text" id="volumeNo" name="volumeNo" value="3">
    title：<input type="text" id="title" name="title" value="title">
    page：<input type="text" id="page" name="page" value="10">
    beginDate：<input type="text" id="beginDate" name="beginDate" value="2018-09-01">
    endDate：<input type="text" id="endDate" name="endDate" value="2018-09-30">
    保管期：<input type="text" id="storagePeriod" name="storagePeriod" value="15">
    密级：<input type="text" id="rank" name="rank" value="53">
    载体：<input type="text" id="carrier" name="carrier" value="4">
    文本：<input type="text" id="text" name="text" value="19">
    文种：<input type="text" id="recordType" name="recordType" value="30">
</form>
<input id="btn_submit" type="button" value="提交">
<script type="text/javascript">
    jQuery(document).ready(function ($) {
        $("#btn_submit").click(function () {
            $('#mainForm').ajaxSubmit({
                type: 'post',
                dataType: 'json',
                success: function (data) {
                    alert(data.message);
                },
                clearForm: false,//禁止清楚表单
                resetForm: false //禁止重置表单
            });

        });
    });

</script>

</body>
</html>